﻿<GroupBox x:Class="BOL.Apps.GeneNetworkBrowser.Controls.TissueFilter"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:converters="clr-namespace:BOL.Apps.GeneNetworkBrowser.Converters"
             Header="Tissue" Padding="2">
    <GroupBox.Resources>
        <converters:CheckAllConverter x:Key="CheckAllConverter" x:Shared="False"/>
    </GroupBox.Resources>
    <StackPanel>
        <CheckBox Padding="5 0 15 0" Name="_cbTissueAll" Content="All">
            <CheckBox.IsChecked>
                <MultiBinding Converter="{StaticResource CheckAllConverter}">
                    <Binding ElementName="_cbTissueBladder" Path="IsChecked" />
                    <Binding ElementName="_cbTissueBladder" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueBlood" Path="IsChecked" />
                    <Binding ElementName="_cbTissueBlood" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueBone" Path="IsChecked" />
                    <Binding ElementName="_cbTissueBone" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueBoneMarrow" Path="IsChecked" />
                    <Binding ElementName="_cbTissueBoneMarrow" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueBrain" Path="IsChecked" />
                    <Binding ElementName="_cbTissueBrain" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueCervix" Path="IsChecked" />
                    <Binding ElementName="_cbTissueCervix" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueColon" Path="IsChecked" />
                    <Binding ElementName="_cbTissueColon" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueEye" Path="IsChecked" />
                    <Binding ElementName="_cbTissueEye" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueHeart" Path="IsChecked" />
                    <Binding ElementName="_cbTissueHeart" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueKidney" Path="IsChecked" />
                    <Binding ElementName="_cbTissueKidney" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueLarynx" Path="IsChecked" />
                    <Binding ElementName="_cbTissueLarynx" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueLiver" Path="IsChecked" />
                    <Binding ElementName="_cbTissueLiver" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueLung" Path="IsChecked" />
                    <Binding ElementName="_cbTissueLung" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueLymph" Path="IsChecked" />
                    <Binding ElementName="_cbTissueLymph" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueMammary" Path="IsChecked" />
                    <Binding ElementName="_cbTissueMammary" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueMuscle" Path="IsChecked" />
                    <Binding ElementName="_cbTissueMuscle" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueOvary" Path="IsChecked" />
                    <Binding ElementName="_cbTissueOvary" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissuePancreas" Path="IsChecked" />
                    <Binding ElementName="_cbTissuePancreas" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissuePeripheralNervousSystem" Path="IsChecked" />
                    <Binding ElementName="_cbTissuePeripheralNervousSystem" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissuePlacenta" Path="IsChecked" />
                    <Binding ElementName="_cbTissuePlacenta" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueProstate" Path="IsChecked" />
                    <Binding ElementName="_cbTissueProstate" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueSkin" Path="IsChecked" />
                    <Binding ElementName="_cbTissueSkin" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueSmallIntestine" Path="IsChecked" />
                    <Binding ElementName="_cbTissueSmallIntestine" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueSoftTissue" Path="IsChecked" />
                    <Binding ElementName="_cbTissueSoftTissue" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueSpleen" Path="IsChecked" />
                    <Binding ElementName="_cbTissueSpleen" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueStomach" Path="IsChecked" />
                    <Binding ElementName="_cbTissueStomach" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueTestis" Path="IsChecked" />
                    <Binding ElementName="_cbTissueTestis" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueThymus" Path="IsChecked" />
                    <Binding ElementName="_cbTissueThymus" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueTongue" Path="IsChecked" />
                    <Binding ElementName="_cbTissueTongue" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbTissueUterus" Path="IsChecked" />
                    <Binding ElementName="_cbTissueUterus" Path="IsEnabled" Mode="OneWay"/>
                </MultiBinding>
            </CheckBox.IsChecked>
        </CheckBox>
        <WrapPanel>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueBladder">Bladder</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueBlood">Blood</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueBone">Bone</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueBoneMarrow">Bone Marrow</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueBrain">Brain</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueCervix">Cervix</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueColon">Colon</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueEye">Eye</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueHeart">Heart</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueKidney">Kidney</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueLarynx">Larynx</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueLiver">Liver</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueLung">Lung</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueLymph">Lymph</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueMammary">Mammary</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueMuscle">Muscle</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueOvary">Ovary</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissuePancreas">Pancreas</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissuePeripheralNervousSystem">Peripheral Nervous System</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissuePlacenta">Placenta</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueProstate">Prostate</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueSkin">Skin</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueSmallIntestine">Small Intestine</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueSoftTissue">Soft Tissue</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueSpleen">Spleen</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueStomach">Stomach</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueTestis">Testis</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueThymus">Thymus</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueTongue">Tongue</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbTissueUterus">Uterus</CheckBox>
        </WrapPanel>
    </StackPanel>
</GroupBox>
